﻿using System;

namespace AmazonBookLinker
{
  public class TemplateTokensViewPresenter
  {
    private readonly ITemplateTokensView view;
    private readonly TemplateTokensModel model;

    public TemplateTokensViewPresenter( ITemplateTokensView view, TemplateTokensModel model )
    {
      this.view = view;
      this.model = model;
    }

    public void Initialize()
    {
      this.view.Content = model.Content;
    }

    public void OnClosingView( object sender, EventArgs e )
    {
      this.view.CloseView();
    }
  }
}